<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>PHP static 关键词</title>
</head>
<body>
<?php
function myTest(){
static $x=0;
echo $x;
$x++
}
myTest():
myTest():
myTest():
?>
</body>
</html>